import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

fig, ax = plt.subplots(figsize=(10, 5))
ax.plot([1,2,3], [4,5,6])
ax.set(xlabel="x_label", ylabel="y_label", title="file_name")
ax.grid(axis="y")
fig.tight_layout()
fig.setp(ax.get_xticklabels(), rotation=45)
plt.show()

